package top.riske.animalhazardassessment.ai;

import java.io.IOException;

/**
 * created by vital on 2025/3/16 下午12:44
 */
public interface DataReceivedCallback {
    /**
     * 接收到新数据时，调用
     * @param newData
     */
    void onDataReceived(String newData) throws IOException;

    /**
     * 接收全部数据后调用，已经没有数据了
     * @param fullContent
     */
    void onProcessCompleted(String fullContent) throws IOException;

    /**
     * 出现异常时的回调
     * @param error
     */
    void onError(Exception error) throws IOException;
}
